package com.zjitc.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * Create By IntelliJ IDEA
 *
 * @author: myq
 * @create-Time: 2017/11/15  10:48
 */
@NoArgsConstructor
@Setter
@Getter
@ToString
public class Product implements Serializable{
    private String pid;
    private String name;
    private Float marketPrice;
    private Float shelfPrice;
    private String shelfTime;
    private String imgs;
    private String detail;
    private String state;
    private Integer stock;
    private Float grade;
    private Integer monthlySales;
    private  String cid;

    private Category category ;

    public Product(String pid, String name, Float marketPrice, Float shelfPrice, String shelfTime, String imgs, String detail, String state, Integer stock, Float grade, Integer monthlySales, String cid) {
        this.pid = pid;
        this.name = name;
        this.marketPrice = marketPrice;
        this.shelfPrice = shelfPrice;
        this.shelfTime = shelfTime;
        this.imgs = imgs;
        this.detail = detail;
        this.state = state;
        this.stock = stock;
        this.grade = grade;
        this.monthlySales = monthlySales;
        this.cid = cid;
    }
}
